Unit tests. Some formatting.