Added: getregime() and setMode() unit tests