Writen test for the hasproject method