added tests for collect and collectO