Update npm prepublish task to also build tests