Make the tests runnable
Use NULL, true and false instead of plain numbers
Extract magic numbers into constants