test for invalid command behaviour