Added functional tests for user registration and login