Added explicit class name to foreign key

Also, changed some requires that made the tests fail.