Unit and acceptance tests added.