fix pytest fixture; move register_uri to fixture