Added tests and implementation of before nad after route hooks