Fix unit tests
Exclude fallback paths when compiling with r.js, as they don't make sense for compilation purposes and cause r.js to choke