test case for __getattr__