added tests for layer visibility CDB-1256