added subshell test
handles subshell commands