switch block: deviation check removed, unit test implemented