added basic test files
refactored _pop