Testing repository using code from a Swift Tutorial