Resolves #23 - add promise returning test support