first tests for onEnter directive