Modified the test bash script