Same-sex marriage faces Supreme test