create private_key tests, declare inline functions, add create_wallet method