client-test: fix handling of profiles