Added two tests for getattr