tests: add rename(1) return value check

Signed-off-by: Sami Kerola <kerolasa@iki.fi>