Added a test for create new interface refactoring.

This commit belongs to issue #20.