allow object to be registered as service
add setContext for unit tests
0.2.17