Extracting tests to register_spec