test prime number in test_command & add exit_command