replace acceptance coverage with unit tests