Basic API demo functionalities -- with tests