CLI activation keys tests

Added some tests for CLI activation keys

Related to #893, #894 and #895.