updated test to almost equal