Handling undefined volumes. Some basic dom assertions and an attempt to keep tests DRY