Fix apiary tests on mono (closes #374)