Fixed a bug in q.py

q.getSchemaLocation() was using the config module under the old name.
Added a tiny test case to show this.
The method also contained errors and the set of exported string
constants had to be expanded.