Unit tests for case controllers and directives

Thanks Lindani :+1: