Cleaned up unit tests as per @cupakromer's suggestion to use Class.private_method_defined?, etc.