Found a few bugs, now passes all amdjs anonymous and basic tests