Use assert almost equal to replace assert equal in testing