Tests for creating javascript evolutionary algorithms