split TestUserAgent.php into pieces