Added test for typescript interface

Related to #552