build and fix a test