added failing nan tests for check_pos_semidefinite
added nan check to check_pos_semidefinite and added doc in code