Added tests for apiary API