wrote tests for command tables