You could try the following:
Code:
RewriteEngine On
RewriteCond %{QUERY_STRING} ^_ga=
RewriteRule ^user(.*) https://test2.example.com/user/? [R,L]
Note that the question mark at the end of the rewritten URL is needed, so it doesn't attach the query string
Regards