Added tests for edit component/standard API. Fixed bugs in API.