Remove semicolon
Added test for the push endpoint
Extracted setup_device helper