refactored test to work with dynamic url, and added partial tests for the ActivityService