Unit tests for login and registration