added a unittest