remove CWFoundationTests as the api's in it are not subject to testing (Michael Feathers Unit Test Rules)
minor spelling correction
refactor unit test to test for nil and non-nil separately
refactor unit test for better readability