added set_units; changed export tests to set units before attempting export