Small refactor on test file [skip ci]