get_page() – Only variables can be passed by reference

Correct to your first test:

$id = 49;
$test = get_page( $id );