web: Fix asserts in shutdown test