add tests for response validation
add result/error both/none field validation