finished up all unit tests except for leader.