successful posts gives status code 201 now
added some unit tests