#242 Added tests for labels object and allow ' ' character for labels. Validate method is now static.