adds scan unit tests