adding a test for scheduleactivity
fixing test and removing debug prints