added some unit tests
fixed typo in @SuppressWarnings for deprecated usage