fixed pep8 errrors
updated unit tests
updated unit tests