added create endpoint
add tests