Add test for custom prototype attribute inheritance