json result and testing