Cleaned up RSpec spec definitions so that class and instance methods are described properly using . and # notation respectively.