Adds missing RunInTransaction call in Run. Adds Test.

Wraps a call to QueryViewNamed inside of a transaction block.

Adds unit test created by @jonlipsky.