Added != operator for where statements.

Also added testcase for this scenario.