split out directives and added test data instead of making calls to the api with every hit