fix bug where private key was hard-coded as 2.

Previously this test failed in MySQL because the private key
for user_two was hard-coded as 2. This change determines it
programatically from user_two, which lets the MySQL test work
properly.