tests: Coerce the return value of take and drop to a list

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>