Extract AWS spot instance logic to SpotManager class and simplify related tests