remove unnecessary integration test

There already is a unit test and an acceptance test.
push down a test to a smaller unit
extract duration detector