Write first working functional test using in-memory DB