Implementation of module compile + tests