Added tests for api user endpoint

* Added record generator and test storage
* Updated RuntimeStorage base class API

Change-Id: I96ec43ea686350aec45726d8b6433950d16ba411