Fixed final tests. Added sanity check for when parsing commands fails to return a parsedCommand.