function page_model_test($delete)
{
    include_once "adventure_model.php";
    $page = new PageModel("Sample Page Text" . rand(0, 100000), AdventureModel::first()->id, "images/test.png");
    $page->save();
    $page->print_fields();
    $page->set("page_text", "Updated Page Text");
    $page->save();
    $page->print_fields();
    if ($delete) {
        $page->delete();
    }
    $pm = PageModel::find(PageModel::last()->id);
    $pm->print_fields();
    PageModel::find(999);
}
function adventure_model_test($delete)
{
    include_once "user_model.php";
    $adv = new AdventureModel("Sample Title_" . rand(0, 100000), UserModel::last()->id, date("Y-m-d H:i:s"));
    $adv->save();
    $adv->print_fields();
    $adv->set("title", "This is a new title buddy!");
    $adv->save();
    $adv->print_fields();
    if ($delete) {
        $adv->delete();
    }
    $am = AdventureModel::find(AdventureModel::first()->id);
    $am->print_fields();
    AdventureModel::find(999);
}