Added test for creating todo items and the related code