add factory for notes and added further test to notes model