use eql to tests for the correct type and value