Fixing extensions (which did not work when not using page-tag.js) and adding test cases