Fix post edit permissions for language manager (#483)

Refactored the unittests a bit so that we can test this stuff more
easily.