Make modules fit for unit testing.
Format codes.