add ignore patterns
bug fix for vector
add vector test function