Trying to use tests. But verifying that were unsuccessful because the test did not find an variable inside the function.