added specs for formatter
added tests for commander