added test for command creation