refactor to include a transpile step for tests