Reworked the first test. db accessed