Added tests and vector behavior