resolve borrowing with mut pointers
an option to prepare Vertex instance before usage
fixing tests to pass