Added basic validate function for SoundLaw
Added test for invalid rule
Improved validation for variables