[fix tests] scrap old tests and add frame for new tests
[fix] use correct api calls
[fix] use joi as devDep