fix unix_socket param not working bug in rpc module
rewrite test_rpc tests with pytest fixture