switch to pk for single key lookup

* switch to using apptest in unit tests
* added uaid validator