refactored test case and adjusted documentation