Added create method and tested all related test cases