Fixes for unit tests and another canPlaySrc fix