Testing helper function intersperse