Those suspected of having a mental disease were taken for further evaluation. Puzzle and mimicry tests were used. The immigrants were evaluated by comparing the time they took to complete the test with the time mentally healthy person took to complete it.
Source: http://macaulay.cuny.edu/eportfolios/drabik10website/iconic-immigration-sites/ellis-island/