You're only as good as your BATNA (best alternative to negotiated agreement).
If you don't have a better choice, then go through Codility. I think you probably have better options. Looking through your post history, why you have 7 years in Rails, then jumped to do PHP work? That's weird. Also remote work as a contractor or consultant is pretty available too. If you're not easily finding jobs right now, you're probably doing it wrong.
You should ask yourself, your coworkers and other peers how to improve your skills, not some internet stranger.
We all get rejections from time to time. Just remember times when you got useful things done, and move onto the next interview.