setting up unit tests
fixes to element insertion, and basic unit tests