support for promises in test
fix typo