removed unused code and added a test for increasing coverage in the rpc application