Refactoring api REST methods calls and improving tests information