added test which ensures not all layers' instances are returned