[#349] added tests