#30;add embedded endpint tests;fix buffer index bug