Can now query layer model for layers that are only visible
added tests for getting visible layers