fixing tests for the case when computer has no battery