Initial unit tests and related adjustments

If this test fails, the current user will get stuck at `$user_id`. You should add `wp_set_current_user( 1 );` to `tearDown()`