Added decktutorsdk test and implemented apifactory