Refactor frame unit tests so that the JSON response is loaded from a file. Makes testing easier.