Add tolerance to seeking to current time to avoid an issue where a device does not issue a 'seeked' event if we set the current time too close to the existing value, so the media state never exits buffering.
Refactor tests to move duplicated code into a helper
Merge branch 'new-media-api' of https://github.com/fmtvp/tal into new-media-api