Test command implemented with Promises