minor fixes and tests for vectors