Create new anonymous class for each test in client spec.