added tests for GetState