price2ret / ret2price finished with tests