tests: all test moved to TestCase [closes #45]
rules and messages property path, nested entity validation
getFlattenMessages fix
path is optional