Add loading bar to unit tests