Added linear stage charging test

Also fixed a bug in tools.get_e0 - incorrect calculation of iteration time
values.