Fixed error message + tests
valid property can be defined in directive