convert globals tests
make all tests pass