Default title can now be defined as function return value too. Corresponding test added