updated tests and added c++ files