Fixed calls to task and updated test database