Fix get_location_by_id & Add test
The function get_location_by_id
has not been used or properly tested yet. Due to a type mismatch, it always returns None
.
This PR adds a test that catches this wrong behavior and fixes the issue.
Moreover, the data fields of Location
are no longer static
, which was also never intended.