Fixes tests breaking because of order of execution of commands