fixing tests on arch linux (mock object compares differently to an int with python3, so always compare ints to ints)