Adding unit tests for LinfoError and LinfoTimer
Refactor to allow tests easier. Tests added for Darwin and main Linfo Core.