Revert "fix build error tests"

This reverts commit c6fd850a3ddbb29ccb61b29f4318d3368a3779e1.
use require_relative to avoid deadlock