Filled out unit tests to help debug.