refactoring signin unit and implementing tracker unit tests