removed test/lib and inlined user scrubber in test