Dynamically creates an in-memory database for test. No need to publish testing/database.php. Fixed path for MediaControllerTest after this change.