Add tests for class white/black list.
Implement class white list for #94.