Write a test for to_json.
Allow the build created_at to be set through the constructor.