Add simple AMD loader for standalone cases, updates to some tests