Initial switching mode test code written.