create test that has different rank before/after same/any operation

 * this test should fail
[MERGE]fix up test
handle SAME/ANY ranks better in validation
Removed unnecessary use of global namespace