Moved tests out of source code and back into the tests directory and set up a file to run all of the tests.