Fix jade identation and template api test