implement password tables tests
add foregin key tests