Adding a test for getTagContent since its used in more than one method and so should have tests. Also formatting everywhere.