added to_vector with tests
added missing compiled model tests