wrote unit tests for PowerSource, and made a TestSystem class for unit testing purposes.