add tests for Request.getAgent, fix #30