modified tests to introduce let function