added unit tests - types validation