Extract constant next table id when created
Fix broken tests
Validate relations only when foreign key is valid
If ref_table_id is out of existed tables, raise error from relations validation
Update coveralls badge URL
Add tests for foreign key creation