Added ToParameter unit tests