start testing - jasmine
more test added, paramsCheck method extracted