Change visibility of $obj member in tests to private.