Inmates, sex offenders may test same-sex marriage law