Bug fix with computation of the project domain
Add more tests