Rewritten tests, still have 1-2 not passed;
Also not optimal work with storing integers in python 3.