Fixed magics unit tests