Update tests to use new API based on promises
Return promise and handle all errors. Still one failed test.