tests around switch command