moves testing to new file
adds files and updates database test