updates format and imports for tests