Fixed testacular to karma renaming bug.
Attempting for better error handling.