fix(tests): call defer after handling error
style(tests): typo
fix(tests): supply --app