remove code duplication in Byte, Short, Integer and Long subjects tests