test function: Rastrigin