refactor sim test