Completed transformer unit tests