added tests, actually implemented $ and ==