Test + Fix

+ Written some tests for castorocauda/timeline and castorocauda/html. 
+ Made many commits to mainly these two files to make them pass the tests