adjusted unittest (3 instead of 4 places)
Added passing of time-argument to ratefun
Fix: time argument as optional parameter