fix query merge from constructor and add additional tests for query and data
read request cookies from superglobals