Bugs fixed for the test conditions for states.sysctl

Bugs fixed for the test conditions for states.sysctl:
1. Corrected if-else logic, for already correct sysctl option setup before.
2. Added test logic: If state file is trying to setup invalid sysctl option, that is not supported by the minion's kernel.