added tests for == and $