Promisify api.exec
Simplify tests