added test handler for json request