fix build configs and tests