The loadTest has to be correct, otherwise the JSLoader might assume the library is loaded and not load your URL, or load your module although the lib is missing. We keep all our libs in /core/lib/, and that worked fine so far.
Does that help you?
P.S.: On lively web you can see that pattern in users/larswassermann/relax.js or in some of the acorn files for ast parsing.