updated managers code, added tests for managers and a test suite to run
them