added basic account creation api and unit tests