temporary constrctor with unit tests