added option flatmap test