Lots of tests. Fixed a bug with (un)initializing a new path.