A couple of typos and first test :)
More tests + basic PlayerResource.credit implementation