frontend: add closures test