Added vector tests and fixed bug in vector resizing.