Fix unity building when 'test' is disabled