Add functional tests for public_key_path