CommonJS, AMD, Shim tests + fix