refactored test implementation