Fixed tests and bugs in index.js
Reload db before each test
Added "fox-repl" with empty test