adding more unit tests, wrote build function for builder and supporting TupleHeader functions