fix errors with test build