tests for building training vector