Refactor BotEditTest

Refactored and added tests for more of the modules
There are a few todos in the file including tests
for claims which should be added after refactoring
their tests.
Change-Id: I1cecd98df7edb85a2cf8411e55a601e9278b57e5
Merge "Refactor BotEditTest"