Added testing switch functionality.