Added integrations tests for inspections + bugfixes