Adds tests for pre-instantiation state, fixes DOM building in animation-tracks.js.