Refactor benchmark script to depend on testing script