moved function tests to a new app, change function tests to use separeted database