Added test files, fixed minor typedef errors and implemented consumer spawning function