added tests and code for loading repose plugin