[test] testing the toProfile and fromProfile fields