Switch to karma test. Add inset constructor spec.