Add chai to package.json
Fixes for running tests with chai and moved test dir