Added unit tests for alternate-key option