Continues writing unit tests for user_portal