Remove uneeded import from code example

This had me reread the code twice to see if I missed why the import was
present.
- add tests for [ticket:2918], confirm this is an 0.9 regression