added tests for State command