Fixed tests for IE. Added deep checking on isSame method.