JBIDE-14993 - check layer+slot

JBIDE-14993 added unit test