add `loaded` assertion

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