[Issue #14] Add scope validation that checks it doesn't contain space; add end-to-end tests