Initial version of a test command, requires some refactoring now.