added unit tests for spot instance usage