imported the rest of the original repo

actually, just the tests
fix built-in console

this should fix _print method for the built-in console