Added unit tests

Refactored Nest Status Object and other Managers to support unit test
framework.