Fixed a method call. Class#toString() should not be used for class name lookup. We should use Class#getName() instead.
Used more robust hashCode() and equals()
Fixed appender properties. An log4j's appender can accept only string property
Added test case to reproduce a user-reported potential bug
Refactored test case to make it wait less