Added basic flatmap test.