Added spec tests