Implemented some directive karma tests