Cleanup tests.
Add perft to the command line arguments.
Move perft function in search module.