working unit tests and spec tests, still getting notice errors