Added the Test for the mode checker. All Passed