Tests and code for concat