CLI activation keys tests

Added some tests for CLI activation keys

Related to #893, #894 and #895.
There should be an error here right - trying to find an item which does not exist?