Test code for velocity