Core tests

This pull request adds unit tests for wagtailcores fixtree command