add setters and test single column foreign key generation