Fixes to get it to work with kraken-js tests