fixes to get tests green with karma dart