Weighted approximations to tail copula processes with application to testing the extreme value condition