use last transiton time on inputs, add test suite