Test for adding an integer to a vector