Add logic to run termex tests during build