Errors in note test fixed. Controller written