Refactor in order to test also negative altitude values.