add unittest for basic heat api management and template creation functions