add observer api tests