Fix some bugs
Add tests for GetUserActivity