Test Assert methods
Fix LogicalNode immutability and add tests for it