change the integration test to handle dir tests different than single-file tests