fixed sbe agent issue when calling quit session and added tests
for all resource commands via the agent