Fixed bug in the default builder and added api contract test for Api implementations