added waf tests
fix bug in computing ticks when the range was infinite