added tests to assert relation tree creation and destruction
added more commenting
added implementation
moved apps tests into model_meta