Cleaned-up karma testing and package so that npm install and karma testing run smoothly on dev invironments.