Changed add method to have the first element be a slice
Fixed add bug in test cases