refactored test application contexts