fixed scheduling bugs; added MenuController unit tests