added unit and acceptance tests for prev commit