added unit tests for signin