fix karma tests
using correct method for custom source path. fixed bug in app.js.