create test cases for AS7-6326 optimize findByPrimaryKey