Added userdata tests using Mock