added test listfunction