Adding command dispatch test code.