fix: export function to the global object

Need to access the functions inside the test also it fix integration tests on travis