Fixed lack of return in getTablePrimaryKey
first set of test coverage