state controller test cases added