Added unit tests for UserContext