added value validation assertions to YarnAssembler. Added tests