Improved testing. All available algorithms are tested in one run of test.js