fix test require so that it can be run anywhere