test: add local variables to simplify a statement