Preparing to 1.0. Removed legacy code in legacy file. Written first test for modern modules.js