Testing utilities - used to help unit test other nodejs modules