Constructors for grid + vector and updated test.

Updated the constructors for grid and vector and also updated the test
function.