[tests] fixed mockery matching
[structure] refactored getting pk sequence into IStructure
[tests] added Structure test
[structure] fixed case sensitivity indenpendce
[structure] fixed structure analyze for views
[tests] typos