Yes it is "possible" but if you want to test every input and output it's probably easier to fit it to a car to try it.
If you use pscan to read the EMS of the existing 5AS and then write the same EMS to the replacement one then you won't need to reconfigure the engine ECU.