Boilerplate and Modal directive with tests