Added command check test

Added a test file to test command cases as well as source file to test
and modified makefile to create test.