Changes as described in review

- RSpec: stub -> allow
- better sanitizing of value(s) and label(s)
- reusing internal methods instead of calling UI directly
- a few minor other changes