Added new test for activation-key

please review it
thanks
Better to wrap the factory call under try/catch block.