added UserActivity test and modified some old test