refactored create
refactored and added tests to line_items_controller