Done. You can see my version at https://github.com/Abizern/BSManagedDocument/tree/tests 

I'll wait for @mikeabdullah to create a branch called `tests` that I can create a pull request for.