Added spec to test code blocks