updated tests for optIn component, updated response codes