added unit test stuff and testing rpc service