Made some tests for Rules, Select input. Also made some modifications to source code to test some fields.