Exported upatchCanPlayType and moved tests to api.js