added unit tests to explain vector
more extensive testing