Backend testing

This Pull request will be used to comment about server side code 
rename `$key` to id so it is more clear what it is representing