Test cleanup, update to latest dev dependencies and karma test runner