adding spec test and fix for bug: some incorrectly namespaced aliases were not throwing exceptions