Added unit tests for timebar factory