moved exceptions to exceptions.h
fixed a bug in the vector test file