Moved user agent to class variable and added basic tester