GasStation: Make API out of main program

Easier testability.
GasStations: Add test cases