Add test of one slide with no button and fix test of params for button.

When only one slide, no indicators and controls.
More than two slides, params for button work.
And this commit contains that delete unnecessary white spaces.
Set if statement in checkParams() when slide is one, indicators and controls are off