Changed a way of 'test' work - now it's all in one big command

Done by reading "From Bash to Z Shell"