improve test to enter random valid values and fix case if parameter was originally false
improve test to enter random valid values and fix case if parameter was originally false

CS2103AUG2016-T17-C3/main