create unit tests Method