fixed action tests and added caching to angulr controller.