Fixed edit post as admin bug.

Cleaned up ui tests.