implemented export with junit testing