Add public function for testing problem equality