Add delays to unit tests