adds unit tests for sign in