Modal directive with tests