logger, 3 changes to improve testability

1. move variables to into class (testability)
2. added "return true" when methods exit normally
3. replaced a === NaN  with isNaN()
log.syslog: test improvements
tests/logger.js: added