Added some tests. Altered Parallel to use a resizable thread pool