add validation of location code
add more swift tests