cleanup unit tests and simplify graphcontroller; fixed update graph on save new data