Implemented the user-agent related tests.