add tests for vectors as well as matrices and also indexed masks