bootstrap refactor of test