Feature/291 test orm

Added tests for FOFTableRelations