Fix merge bug in input unit test.
Fix fields test. Use std::shared_ptr.

- fix fields unit tests
- fix linking with coupling lib
- replace boost::shared_ptr with std::shared_ptr