Modifed schedule func to accept group param

- Make a change to api
- Added more test