Do not fail if no alias has been defined There is no output if no alias has been defined and the test fails in that case. Adding an alias definition makes the alias command return at least that just added entry.