#146 added tests for indices, primary keys and foreign keys