Added a test showing pk queries work.

Closes #163.