unit tests for activities and resources view.