Adding test cases for classes implementing by-ref magic __get

Fixes #55