test "$project" != '2'
The way you had it, as a jumbled string within quotations, I believe the test would have always been true. Try the above;
As for the `case` area, you're missing an in
operator on the `case` line, and, I'm not sure if your case function will work correctly with those single-quotes around the '1' and '2' (it might, but not sure) -- if not, try removing the quotes.