Adding api tests and gnote model.