refactor tests to use level-test