working with APIv3
fixed bug: comparison api version
updated tests