Converted test_encded_weight_matrix test.
Merge pull request #29 from Hudon/test_encoded_weight_matrix

Converted test_encded_weight_matrix test.