Adapted tests to be compatible with Python 3

In Python3 you cannot use 04 or 05 as an integer, which is what
was used in test_core.py