Update test to reflect code change

Require.js is not counted as a separate source, add a new property on
the requirejs object instead.