updated activation-key tests to use factory and api's for dependent entities
Merge pull request #1337 from sghai/ak-test

updated activation-key tests to use factory and api's for dependent entities