Added a test environment, a few first tests, and updates some functionality from the utils lib.