refactored tests to use data providers
added tests for ONE_WAY and SECURED flags
inlined $presenter variable in constructUrl()