Add column to indicate which group (test vs train) the subject is in and merge the test and train data