tests for account and node creation working
rearranged files so common test code can go in test-library.js