add `loaded` assertion

@ianstormtaylor @yields for https://github.com/segmentio/analytics.js-integration-tester/issues/18