Added tests for structures with metadata modifications
Mockery is updated to latest version to avoid interfaces conflict with PHPUnit 4.x