Fixed testing - should exit with error code!