Add tests for field accesses