Test classes/packages via tempfile