starting to add some tests for internals.py