Add hasLayer tests