Added small bug in active learning filtering, and added integration test for it.