Tests no longer run in background

Temporarily have two copies of test_loader.js, will remove duplication in near future.