tests for toList