Your interactive shell only manages the jobs that it started. When you run a script as a command, the background processes are started by the subshell, not the original shell.
You need to source
the script, so that it will be run by your interactive shell:
source ./test