Masking route to allow testing with PHPUnit