Refactored tests; unified handling of get requests