refactored tests and removed unused functions
tags collection updates when a factoid changes