Added test for testRequire() statement.
Enhanced API.