Added tests and fixed default schedule value