stub? define_singleton_method in tests is kinda hacky