added equality properties to compute
added equality tests
bug fix in tests