some primtives tests and validation methods