directive test without ui test