                             break
                         }
                     }
-                    alertAmount.addAction(UIAlertAction(title: "Wszystkie (" + String(amountFlashcardsNotHiden) + ")", style: .Default) { act in
+                    alertAmount.addAction(UIAlertAction(title: "Wszystkie (" + String(amountFlashcardsNotHidden) + ")", style: .Default) { act in
                         resetSearchUI()
                         self.performSegueWithIdentifier("StartTest",
-                            sender: Test(deck: flashcards, testType: .Test(UInt32(amountFlashcardsNotHiden)), deckName: deck.name))
+                            sender: Test(deck: flashcards, testType: .Test(UInt32(amountFlashcardsNotHidden)), deckName: deck.name))
                         })
                     alertAmount.addAction(UIAlertAction(title: "Anuluj", style: UIAlertActionStyle.Cancel, handler: nil))
                     

            switch $0 {
            case .Success(let flashcards):
                guard !flashcards.isEmpty else {
                    self.presentAlertController(withTitle: "Błąd", message: "Talia nie ma fiszek", buttonText: "Ok")
                    return
                }
                let alert = UIAlertController(title: "Test czy nauka?", message: "Wybierz tryb, który chcesz uruchomić", preferredStyle: .Alert)

                    
                    let amounts = [ 1, 5, 10, 15, 20 ]
                    
                    for amount in amounts {
                        if amount < amountFlashcardsNotHidden {
                            alertAmount.addAction(UIAlertAction(title: String(amount), style: .Default) { act in
                                resetSearchUI()
                                self.performSegueWithIdentifier("StartTest",
