logic error fixed
Application and ChainNode tests