cmd/lara: making output substitutable for testing