Added unit tests for 500 codes.

Started on 400s, but not complete yet..