Minor updates in math::tvec + added test cases