added test handler for apirequest. adds apirequest to datastore for analysis and testing