tests: switch should to assert