Adding nosetest for Citation.Replication and improved this function