promise check for -> + unit test