Fixing issues with tests on snap ci