Add ability to getFields of related table
Add test for getFields()