updated toggle plain to SetPlain(bool), updated tests.