Delayed send tests, readded custom heap size, fixed pretty big bug in scheduler