Unit tests for Before() functionality
Add before function to app