refac(*): added unit tests