refactor future test