Report test duration to TeamCity

According to TeamCity documentation, `testFinished` has an optional `duration` attribute, and so does the new SBT test interface. I considered not including it if it is -1 (not reported by the test framework for some reason), but the automatic duration is useless anyway.