Implement primitive dump and include test code