Switch to using core assert module instead of cb() in tests
Remove write file test, too unstable - should test it some other way