fixed version of karma
fixes to directive unit test