add tests
accepted in c++