testing mnist using multilayernet