Adding tests and refactoring the Breadcrum directive