Adding prelude tests file, map function for refs