Avoid precision errors when comparing with expected score