Added spec tests.