wrote test functions for diracvector.jl