trivia test compiles but crashes