Sounds like a true-blue yorkie to me
Crates and x-pens are great for when you can't keep an eye on these little guys.
Potty training takes time and consistency. Mine still have accidents occasionally, but it's usually my fault for not taking them out in time or because I forgot to put the pee pee pad down.