completed core unit tests