implementing getActivityDetail operation and adding a test case