add test and class structor