completed test version of user-agent filter