SOC-2115 | Improve Profile class: add more junit tests