Query string, with tests