Reworked and started to Bash-ify the test.