added more tests
fixed altitude function