Does robots.txt apply to subdomains?
Each subdomain is generally treated as a separate site and requires their own robots.txt file.
When the crawler fetches test.domain.com/robots.txt
that is the robots.txt file that it will see. It will not see any other robots.txt file.