Added tests for coverage.

Covers basic operations of the middleware for parallel and serial functions.
Merge pull request #1 from Aman13/aman-test

test writing