Testing for uniqueness of phase recovery in two dimensions