Fixed binding between an and id in out object classes. Added unit tests for all of them