tests: avoid bash in shebang and fix wrong "==" in test